package com.itheima.stringbuilder;

public class Demo5 {
    public static void main(String[] args) {
        StringBuilder sb = new  StringBuilder("红色");
        sb.append("蓝色");
        System.out.println(sb);
        sb.reverse();
        System.out.println(sb);
        int length = sb.length();
        System.out.println("length =" +length);
        System.out.println("sb=" + sb);
        String s = sb.toString();
        System.out.println("s=" + s);
    }
}
